interface responseData {
  code: number,
  ok: boolean,
  message: string
}

export interface User {
  id?: number | string;
  createTime?: string;
  updateTime?: string;
  username?: string;
  password?: string;
  name?: string;
  phone?: string;
  roleName?: string;
}

export interface UserResponseType extends responseData {
  data: {
    records: User[];
    total: number;
    size: number;
    current: number;
    orders: any[];
    optimizeCountSql: boolean;
    hitCount: boolean;
    countId?: any;
    maxLimit?: any;
    searchCount: boolean;
    pages: number;
  }
}

export interface UserAddResponseType extends responseData {
  data? :any
}

// 职位类型
export interface roleData {
  id?: number | string,
  updateTime?: string,
  createTime?: string,
  roleName?: string,
  remark?: null,
}
export interface UserAllResponseType extends responseData {
  data: {
    assignRoles: roleData[],
    allRolesList: roleData[]
  }
}

// 用户分配角色接口参数
export interface setUserRoleType {
  roleIdList: number[],
  userId: number | string
}